<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 100px;
            height: 100px;
            background-color: tomato;
            /* 过渡小属性来书写 */
            /* 过渡属性名称 */
            transition-property: width, height, background-color;
            /* 过渡时间 */
            transition-duration: 2s;
            /* 过渡动画运动速度曲线 */
            transition-timing-function: linear;
            /* 过渡延迟时间 */
            transition-delay: 0s;

        }
        .box:hover {
            width: 200px;
            height: 200px;
            background-color: blue;
            }
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>